import java.sql.Date;
import java.util.ArrayList;
import java.util.List;

/**
 * Filtro utilizzato per la ricerca dei film 
 *
 */
public class MovieFilter {
	private String title;
	private List<String> actors;
	private String director;
	private Date startDate, endDate;
	private int startIndex, length;
	private List<MovieType> types;

	public MovieFilter(String title, List<String> actors, String director,
			Date startDate, Date endDate, int startIndex, int length,
			List<MovieType> types) {
		super();
		this.title = title;
		this.actors = actors;
		this.director = director;
		this.startDate = startDate;
		this.endDate = endDate;
		this.startIndex = startIndex;
		this.length = length;
		this.types = types;
	}

	public MovieFilter() {
		types = new ArrayList<MovieType>();
		actors = new ArrayList<String>();
		startDate=null;
		endDate=null;
		director="";
		title="";
		startIndex=0;
		length=0;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public List<String> getActors() {
		return actors;
	}

	public void setActors(List<String> actors) {
		this.actors = actors;
	}

	public String getDirector() {
		return director;
	}

	public void setDirector(String director) {
		this.director = director;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public int getStartIndex() {
		return startIndex;
	}

	public void setStartIndex(int startIndex) {
		this.startIndex = startIndex;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public List<MovieType> getTypes() {
		return types;
	}

	public void setTypes(List<MovieType> types) {
		this.types = types;
	}

}
